package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import beans.BeanTrans;

public final class traductor_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error/errorpage.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');
      beans.BeanTrans mybean = null;
      synchronized (request) {
        mybean = (beans.BeanTrans) _jspx_page_context.getAttribute("mybean", PageContext.REQUEST_SCOPE);
        if (mybean == null){
          mybean = new beans.BeanTrans();
          _jspx_page_context.setAttribute("mybean", mybean, PageContext.REQUEST_SCOPE);
          out.write("\n");
          out.write("    ");
          org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("mybean"), request);
          out.write('\n');
        }
      }
      out.write("\n");
      out.write("<!-- VALIDADO!! :-D -->\n");

String id = session.getId();
String usuario = (String) session.getAttribute("usuario");

      out.write("\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n");
      out.write("    \n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("<head>\n");
      out.write("<link rel=\"stylesheet\" href=\"estilos/style.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\"/>\n");
      out.write("<script src =\"ajax/scriptaculous-js-1.8.1/lib/prototype.js\"  type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<script src =\"ajax/scriptaculous-js-1.8.1/src/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<script src=\"ajax/ajax_utils.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<script src=\"ajax/ajax_login.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<script src=\"js/menu.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n");
      out.write("<title>Erasmus Help!</title>\n");
      out.write("<!--[if IE]> <link href=\"estilos/style_ie.css\" rel=\"stylesheet\" type=\"text/css\"> <![endif]-->\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body onload=\"ocultaSubMenu()\">\n");
      out.write("\t\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "hidden.jsp", out, false);
      out.write("\n");
      out.write("\t<div id='page_wrapper'>\n");
      out.write("\t\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "cabecera.jsp", out, false);
      out.write("\n");
      out.write("\t\n");
      out.write("\t");
 if(usuario == null) { 
      out.write("\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu.jsp", out, false);
      out.write('\n');
      out.write('	');
      out.write('	');
 } else { 
      out.write("\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu_user.jsp", out, false);
      out.write('\n');
      out.write('	');
      out.write('	');
 } 
      out.write("\n");
      out.write("\t<div id='content_wrapper'>\n");
      out.write("\t\n");
      out.write("\t<div class='spacer'></div> \n");
      out.write("\t\n");
      out.write("\t<div id='contenido'>\n");
      out.write("\t\n");
      out.write("\t\t<div id=\"wrapper_traductor\">\n");
      out.write("\t       <form action=\"#\" id=\"form_traductor\" onsubmit=\"return false;\">\n");
      out.write("\t  \n");
      out.write("\t        <div id=\"divtrans\">\n");
      out.write("\t\t        <div class=\"tatrans\">\n");
      out.write("\t\t        \t<label for=\"texto\">Texto a traducir</label>\n");
      out.write("\t\t        \t<textarea id=\"texto\" name=\"texto\" rows=\"7\" cols=\"35\"></textarea>\n");
      out.write("\t\t        </div>\t\n");
      out.write("\t\t        <div style=\"float: right\">\n");
      out.write("\t\t           \t<button id=\"bt_trans\" class=\"mybtn\" onmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\"\n");
      out.write("\t\t           \tonclick=\"procesaParametros('res_trans','form_traductor','proc_traductor.jsp', 'get');\" title=\"Haz click para traducir\">Traducir</button>\n");
      out.write("\t\t       \t\t<input type=\"reset\" value=\"Reset\" class=\"mybtn\" onmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\" title=\"Haz click para borrar el texto\"/>\n");
      out.write("\t\t       \t</div>                  \n");
      out.write("\t       \t</div>\n");
      out.write("\t        <div id=\"selidioma\">\n");
      out.write("\t        \t<label for=\"par_idiomas\">Idiomas</label><br/>\n");
      out.write("\t        \t<select class=\"tdlista\" id=\"par_idiomas\" name=\"par_idiomas\">\n");
      out.write("\t            \t<option class=\"opcidiom\" value=\"es_en\" selected=\"selected\">Espa&ntilde;ol - Ingl&eacute;s</option>\n");
      out.write("\t                <option class=\"opcidiom\" value=\"es_fr\">Espa&ntilde;ol - Franc&eacute;s</option>\n");
      out.write("\t                <option class=\"opcidiom\" value=\"es_ge\">Espa&ntilde;ol - Alem&aacute;n</option>\n");
      out.write("\t                <option class=\"opcidiom\" value=\"es_it\">Espa&ntilde;ol - Italiano</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"en_es\">Ingl&eacute;s - Espa&ntilde;ol</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"en_fr\">Ingl&eacute;s - Franc&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"en_ge\">Ingl&eacute;s - Alem&aacute;n</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"en_pt\">Ingl&eacute;s - Portugu&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"en_it\">Ingl&eacute;s - Italiano</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"fr_en\">Franc&eacute;s - Ingl&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"fr_es\">Franc&eacute;s - Espa&ntilde;ol</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"fr_ge\">Franc&eacute;s - Alem&aacute;n</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"fr_pt\">Franc&eacute;s - Portugu&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"fr_it\">Franc&eacute;s - Italiano</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"ge_en\">Alem&aacute;n - Ingl&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"ge_es\">Alem&aacute;n - Espa&ntilde;ol</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"ge_fr\">Alem&aacute;n - Franc&eacute;s</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"ge_pt\">Alem&aacute;n - Portugu&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"ge_it\">Alem&aacute;n - Italiano</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"pt_en\">Portugu&eacute;s - Ingl&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"pt_es\">Portugu&eacute;s - Espa&ntilde;ol</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"pt_ge\">Portugu&eacute;s - Alem&aacute;n</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"pt_fr\">Portugu&eacute;s - Franc&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"pt_it\">Portugu&eacute;s - Italiano</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"it_en\">Italiano - Ingl&eacute;s</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"it_es\">Italiano - Espa&ntilde;ol</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"it_fr\">Italiano - Franc&eacute;s</option>\n");
      out.write("\t\t\t\t\t <option class=\"opcidiom\" value=\"it_ge\">Italiano - Alem&aacute;n</option>\n");
      out.write("\t                 <option class=\"opcidiom\" value=\"it_pt\">Italiano - Portugu&eacute;s</option>\n");
      out.write("\t              </select> \n");
      out.write("\t       </div><!-- fin sel_idioma -->\n");
      out.write("\t       <div id=\"res_trans\"></div>   \n");
      out.write("\t      </form>\n");
      out.write("\t </div>\n");
      out.write("\t<div class='spacer'></div>\n");
      out.write("\t\n");
      out.write("\t</div>\n");
      out.write("</div>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "pie.html", out, false);
      out.write("\n");
      out.write("\t\n");
      out.write("</div>\n");
      out.write("</body>\n");
      out.write("\t\n");
      out.write("</html>\n");
      out.write("\n");
      out.write("\t    \n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
